package com.sbm.app.listener;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * 启动完成事件
 *
 * @author Administrator
 */
public class AppReadyListener implements ApplicationListener<ApplicationReadyEvent> {
    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        System.out.println("["+new SimpleDateFormat("HH:mm:ss").format(new Date())+"] 应用启动完成");
    }
}
